home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / com / internet / nos / nos-ppp / docs / modem.txt < prev    next >
Text File  |  1994-04-29  |  25KB  |  553 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                                    11
  7. DEMON INTERNET LTD.
  8. ===================
  9. 42 Hendon Lane
  10. Finchley
  11. London
  12. N3 1TT
  13. 081-349 0063  (London)
  14. 031-552 0344  (Edinburgh)
  15. email internet@demon.net
  16.  
  17. MODEM.TXT - INFORMATION ON CONFIGURING A MODEM FOR CONNECTING TO THE
  18. INTERNET
  19. Last updated 29th April 1994
  20.  
  21. The latest version of this document is available from
  22. ftp.demon.co.uk:/pub/doc/Modem.txt
  23.  
  24.  
  25. Contents
  26. ========
  27.  
  28. 1.   General
  29. 2.   Essentials
  30. 3.   Telephone Exchange
  31. 4.   Internal Modems
  32. 5.   Which Phone Number
  33. 6.   Modem and Telephone Leads
  34. 7.   Serial Chips
  35. 8.   Speed
  36. 9.   Trouble Shooting
  37. 10.  Software and Other Factors
  38. 11.  Help for Specific Computers
  39.   11.1    IBM PC Compatibles running DOS
  40.   11.2    OS/2
  41. 12.  Individual Modem Settings
  42.   12.1    US Robotics/Miracom
  43.   12.2    Supra
  44.   12.3    Yoriko
  45.   12.4    Zoom
  46. 13.       Testing
  47. 14.       Finally
  48.  
  49.  
  50. 1. General
  51. ==========
  52.  
  53. This document will point out some general essentials and advice on
  54. setting up your modem.  A section at the end discusses specifics
  55. regarding a DOS setup running the KA9Q NET.EXE program.  Due to the vast
  56. combinations of computer and modem setups it is impossible to give
  57. specific help for all types.
  58.  
  59. Making an Internet (IP - Internet Protocol) connection via a modem is
  60. very different from a standard dial-up connection.  Do not assume that
  61. just because you can download from a BBS (and maybe upload) that you have
  62. your communication (comms) set-up 100% sorted out.  Due to the nature of
  63. IP, if you get errors, throughput can be hit very badly.  Under IP
  64. information is sent in packets and for maximum speed these should
  65. generally be as large as possible up to a maximum of about 1500
  66. characters.  If a packet gets messed up (garbled) its entire contents
  67. will have to be resent - hence a large speed degradation may occur.
  68.  
  69. One exception to this is when an interactive sessions are sharing a
  70. TCP/IP link with more voluminous transfers such as NNTP or SMTP.  In this
  71. case it can be preferable to have smaller transmission units (Maximum
  72. Transmission Units setting or MTU) so that keystrokes/screen updates will
  73. fit into the data stream with less delay.  If a large MTU is used this
  74. can lead to what feels like a jerky or intermittent session.
  75.  
  76. Enough of the technical parts, there follows some sound advice that
  77. everybody should take note of.
  78.  
  79.  
  80. 2. Essentials
  81. =============
  82.           Correct modem settings: full hardware handshaking (CTS/RTS),
  83.           flow control, XON/XOFF set to off, settings must be bi-
  84.           directional where appropriate.
  85.           
  86.           A full specification modem cable (open yours up - if it has
  87.           only 3 wires it is no good).
  88.           
  89.           A serial chip that can cope with the high speeds (if using a
  90.           high speed modem).  Extended memory drivers and Terminate Stay
  91.           Residents (TSRs) etc. can interfere with the handling of
  92.           interrupts from serial chips.
  93.           
  94.           
  95. 3. Telephone Exchange
  96. =====================
  97.           
  98.           The Demon Internet Service (DIS) is on modern digital exchanges
  99.           so you should have little trouble with ringing tones etc when
  100.           connecting to us.  If you are on an older exchange, your modem
  101.           may not recognise the dialling tone.  If this happens, look in
  102.           your manual and change the setting that overrides the dial tone
  103.           recognition.
  104.           
  105.           Note that when you make changes to a modem's settings you
  106.           should always reset the modem first, make the change and then
  107.           save the settings.  You will need a comms or "terminal
  108.           emulation" package such as Telix, Procomm, Window's Terminal, Z-
  109.           Term, Microphone etc.  Look in your modem manual for
  110.           instructions.  Mostly you will be able to type ATZ <return> to
  111.           reset your modem.  On a US Robotics/Miracom modem you could
  112.           type:
  113.           
  114.           ATZ            Reset the modem
  115.           ATX3           Alter a setting
  116.           AT&W           Write the settings to Non-Volatile RAM (NVRAM)
  117.           
  118.           The last bit (AT&W) is useful as it means that when the modem
  119.           is reset, it will remember the settings you have stored.
  120.           
  121.           If going through a private telephone network (or PABX) first,
  122.           you will probably need to dial a number such as 9 to get an
  123.           outside line.  Make sure your dial string has this in.  You may
  124.           need to separate this from the number to dial by a separator
  125.           such as a comma so that there is a pause to give your telephone
  126.           system time to give you an outside line:
  127.           
  128.           9,0813434848
  129.  
  130.  
  131. 4. Internal Modems
  132. ==================
  133.  
  134.           Internal modems have the advantage of not having a serial lead
  135.           to worry about but the disadvantage of using an extra interrupt
  136.           and generally don't have any lights to let you know what is
  137.           going on.  Ensure that the interrupt on which the modem sits
  138.           does not interfere with any others - refer to the setup program
  139.           for your computer and your modem manual.  This may require
  140.           altering a jumper (a small connector) on the main computer
  141.           board (mother board) on your computer or on a separate board.
  142.           This should be well documented and is well within the scope of
  143.           the average user.  Ensure that the modem is seated correctly in
  144.           the expansion slot.
  145.           
  146.           
  147. 5. Which Phone Number
  148. =====================
  149.           
  150.           We have multiple Points of Presence (PoPs) - please see
  151.           /pub/doc/Demon.txt for details.  Thus you will have a choice of
  152.           numbers to ring.  You may use any of our PoPs at any time.
  153.           
  154. 6. Modem and Telephone Leads
  155. ============================
  156.  
  157.           Your modem lead should be in good condition and preferably not
  158.           wrapped in a tight circle or running parallel to high power
  159.           cables etc.  This will normally only affect longer runs and, as
  160.           your cable should be earthed, will not often be a problem.  The
  161.           cable should be connected securely at both ends as should the
  162.           telephone cable.  If you suspect your telephone socket may be
  163.           causing a problem then test it with a standard plug in
  164.           telephone.  Use the correct type of modem lead - they vary from
  165.           country to country.
  166.           
  167.           
  168. 7. Serial Chips
  169. ===============
  170.           
  171.           The type of serial chip (Universal Asynchronous
  172.           Receiver/Transmitter - UART) in use can make a big difference
  173.           to comms performance/reliability.  At higher speed the computer
  174.           can sometimes not service the serial chip fast enough to catch
  175.           all of the characters arriving down the line.  This problem
  176.           increases if running under a multi-tasker such as Windows,
  177.           certain memory managers and other TSRs.
  178.  
  179.  
  180. 8. Speed
  181. ========
  182.  
  183.           Close to every modem user's heart is the speed at which they
  184.           can operate.  There are two different speeds: the first is the
  185.           speed at which a modem can talk to another modem; the second is
  186.           the speed at which the modem can talk to its controlling
  187.           computer (the DTE rate).
  188.           
  189.           Firstly, we will discuss the connect rate.  A V.22bis modem can
  190.           connect at a speed of 2,400 bits per second.  There are 8 bits
  191.           in a byte (a byte is usually one character) so that is a
  192.           maximum of 300 characters per second (cps).  Due to start and
  193.           stop bits, each byte will take 10 bits reducing the speed to
  194.           240 characters per second.  When running over IP there is a
  195.           slight overhead and so you will never see this maximum.
  196.           However, as you can (and will) have several things happening at
  197.           once, you will be able to make very good use of your available
  198.           bandwidth.
  199.           
  200.           Many modems have compression protocols built in to them.  MNP/4
  201.           and V42 use synchronous connections to provide an error free
  202.           connection between modems, saving the start and stop bits.
  203.           This gives at least a 20% increase in throughput.  V42bis adds
  204.           compression, provided that the DTE rate is higher than the
  205.           connection rate.  This means that when downloading a plain text
  206.           (or ASCII) file, it is possible to get faster speeds by
  207.           compressing the data.  The data is compressed so that the same
  208.           information can be encoded in to a smaller space.  The
  209.           receiving modem will of course unscramble the data for you.  If
  210.           news normally flows in at say 200 cps, then, on a 2400 cps
  211.           link, you have up to 44 cps left at the same time for mail,
  212.           telnet'ing, ftp'ing etc.  Compression techniques do not work as
  213.           effectively on binary files and make very little difference to
  214.           pre compressed files (such as .zip, .zoo, .lha etc.).
  215.           
  216.           Note that MNP5 will usually degrade throughput on an IP link
  217.           due to the packet based nature of it's compression method.
  218.           V42bis does not suffer this problem as it is capable of
  219.           optimising itself dependent on the type of data being
  220.           transferred.
  221.           
  222.           Now we will discuss the second speed - the speed at which the
  223.           modem and computer communicate with each other.  This is called
  224.           the Data Terminal Equipment (DTE) rate.  If you have a slow
  225.           modem, e.g. a 2400 baud one without MNP or V42, then it will
  226.           probably only work correctly when talked to by the computer at
  227.           the same speed.  For the facts on your particular modem and
  228.           computer you should refer to your manuals.  On faster modems
  229.           you will only be able to take advantage of some of the
  230.           compression features by making the computer talk to the modem
  231.           at a faster speed than modem is talking to the remote modem
  232.           down the telephone line.  Thus you should talk to a 9600 modem
  233.           at 19200 or even 38400.  You should check the maximum speed at
  234.           which the serial port on your modem can talk and then set your
  235.           communication package to work at the highest mutually available
  236.           speed.  Don't forget that without a buffered UART you are
  237.           unlikely to sustain reliable high speed comms above 9600 baud.
  238.           
  239.           Please note that we only support modems capable of V22bis
  240.           (2400) and upwards.  If you have a US Robotics/Miracom HST
  241.           modem, you may not get very good throughput in HST mode.  In
  242.           practice HST mode is fine if FTP'ing from a site without
  243.           anything else happening (sending mail etc.) as it works fine in
  244.           one direction at a time only.
  245.           
  246.  
  247. 9.  Trouble Shooting
  248. ====================
  249.  
  250.           If you are getting garbled characters on the screen then
  251.           something is wrong!  Garbled characters are often a sign of
  252.           mismatched speeds, lack of handshaking or a non-locked DTE
  253.           rate.  If you get as far as the login prompt but no further
  254.           then make sure that your dialler script is working on 8 bit
  255.           standard comms: 8 bits, no parity, 1 stop bit. See
  256.           /pub/doc/Demon.txt for the full logon script details.
  257.           
  258.           Having checked your setup according to the information above,
  259.           try reducing the speed at which the computer talks to the modem
  260.           (if using a high speed modem) until the connection works.  If
  261.           you have to do this then either you are attempting to drive
  262.           your computer or your modem at too high a speed, or you have
  263.           other processes running which interfere with the correct
  264.           running of your serial communications (as per Serial Chips
  265.           above).
  266.           
  267.           If you have finished your live session and log off you may
  268.           sometimes find that your phone line is not dropped.  This can
  269.           result in an unwelcome phone bill!  There are a number of
  270.           computer/software specific solutions to this problem and some
  271.           answers are given in /pub/doc/Support.faq which may have been
  272.           included in your installation.  One thing to check on your
  273.           modem is that the setting that makes the phone line drop when
  274.           the computer tells the modem that it has finished, is on.  The
  275.           computer uses the serial port and drops DTR (Data Terminal
  276.           Ready) and the modem spots this and hangs up the line.  The
  277.           setting often &D2 and you should read the section below which
  278.           tells you how to set this.  It is definitely &D2 for US
  279.           Robotics, SupraFax and Dowty Quattro modems.
  280.           
  281.           There is a section below which specifically refers to problems
  282.           that may be encountered by PC users.
  283.           
  284.           
  285. 10. Software and Other Factors
  286. ==============================
  287.  
  288.           By configuring your software correctly you can make significant
  289.           improvements to an under performing communications connection.
  290.           Things to check for include badly fragmented disks (run a disk
  291.           de-fragmenter such as Norton's Speed Disk), no disk cache, no
  292.           or insufficient buffering inside the software and unnecessary
  293.           checking protocols or indexing taking place.  Refer to your
  294.           software's instructions for details on these.
  295.           
  296.  
  297. 11. Help for Specific Computers
  298. ===============================
  299.  
  300.      Some extra comments for some operating systems which may be of use
  301. follows.
  302.  
  303.      11.1 IBM PC Compatibles running DOS
  304.      ===================================
  305.  
  306.           In addition to the above info there is some specific advice
  307.           below for those of you running DOS.
  308.           
  309.           Some modems send back "OK" when sent ATZ (the reset command)
  310.           even though they are not ready.  This means that the dialer
  311.           program will try to ring out even though the modem is not
  312.           ready.  The effect is that you will see ATZ on the screen
  313.           followed by OK and then the program will not dial.  Eventually
  314.           it will time out.  To avoid this, send AT instead of ATZ in the
  315.           modem initialisation string.
  316.           
  317.           Extended memory drivers can interfere with the correct
  318.           operation of your serial communications.  If you suspect this,
  319.           rename your CONFIG.SYS and AUTOEXEC.BAT files and then reboot
  320.           your computer to see if the connection improves.
  321.           
  322.           If you have a V.32bis 14,400 modem you will probably want to
  323.           talk to it at 38,400.  Unless you have a suitable serial chip
  324.           then you will get errors and, as explained at the start of this
  325.           document, this can seriously impact the throughput.  When
  326.           running NET.EXE you can type asystat at the net> prompt and
  327.           information about your serial comms will be printed to the
  328.           screen.  The interesting parameter is the third one on the
  329.           second line, 'hw over'.  This shows how many hardware overruns
  330.           (characters lost because they weren't fetched from the serial
  331.           chip in time) have occurred.  These overruns are usually due to
  332.           lack of either a buffered UART or hardware handshaking.
  333.           
  334.           As already stated, for maximum performance you will need to
  335.           have a buffered chip.  For this you will need a 16550A - this
  336.           is the number that is written on the chip.  The asystat command
  337.           will tell you if a 16550 is detected.  Unfortunately, even top
  338.           manufacturers overlook this area so it is quite likely that
  339.           your chip is below par.
  340.           
  341.           If in doubt, open up your computer and locate the serial chip.
  342.           If it is not a 16550 then it might need replacing.  If you are
  343.           handy with a soldering iron you could replace it, but this is
  344.           not advisable unless you are really confident.  If the chip is
  345.           socketed then it can be removed and a 16550 (costing about #16
  346.           - we sell them) be put in its place.  If not then you could buy
  347.           an extra serial card with a 16550 already on it costing from
  348.           around #30 to #70 depending on the specification.
  349.           
  350.           If you are using a standard serial port then the settings
  351.           offered for COM1, 2, 3 or 4 in the configuration program in
  352.           DIS.EXE will probably be fine.  Otherwise you should refer to
  353.           your manuals and enter the appropriate IRQ number and I/O base
  354.           address.
  355.           
  356.           If you install an extra serial card then be aware that if you
  357.           have, for example, a mouse on COM1 then you should not use COM3
  358.           for your modem using the default IRQ setting as they share the
  359.           same interrupt.
  360.           
  361.           There is another factor that can impede throughput and that is
  362.           software overruns.  Using the NET.EXE software, at the net>
  363.           prompt having just received some news or ftp'd a file, type
  364.           asystat and look at the figure before sw over.  If this is not
  365.           0 then you are getting software overruns.  To fix this,
  366.           increase the buffer size in the attach line near the top of
  367.           autoexec.net:
  368.           
  369.           attach asy 0x3f8 4 ppp sl0 4096 1500 38400
  370.           
  371.           Alter the 4096 in the above to be 8192, 12288 or higher until
  372.           the software overruns are cured.
  373.           
  374.      11.2 OS/2
  375.      =========
  376.          If intending to run the DIS DOS software in an OS/2 2.x DOS
  377.          session you should get a copy of sio126c.exe and install the
  378.          communications driver in it before running DIS.  sio126c.zip is
  379.          available on our ftp server or via our guest download account.
  380.          This is because the standard communications drivers do not pass
  381.          to DOS the buffering of your 16550A buffered serial chip.
  382.  
  383.  
  384. 12. Individual Modem Settings
  385. =============================
  386.  
  387.      12.1 Setting Up a US Robotics/Miracom Modem
  388.      ===========================================
  389.           
  390.           To set up your modem, use a standard communications package.
  391.           Type ATZ <RETURN> and see the response OK.  Then continue to
  392.           make the settings.  You can type ati4 <RETURN> and ati5 to see
  393.           what your current settings are.  For connecting to Demon we
  394.           recommend the following:
  395.           
  396.           B0     V.32bis modulation rather than HST
  397.           C1     Transmitter enabled
  398.           E1     Local echo ON
  399.           F1     Duplex OFF receiving system sends duplicate data
  400.           Q0     Result codes displayed
  401.           V1     Display result codes in verbal (not numerical) mode
  402.           &A3    Enable additional error control indicator
  403.           &B1    Serial port remains at fixed setting
  404.           &C1    Modem send CD (Carrier Detect) on connection
  405.           &D2    Terminal sends DTR (Data Terminal Ready)
  406.           &H1    Hardware CTS (Clear to Send) transmit data flow control
  407.           &I0    Received Data software flow control disabled
  408.           &K3    MNP 5 data compression disabled
  409.           &N0    Variable link speed negotiation
  410.           &R2    Received Data h/ware (RTS) flow controlled by computer
  411.           &S1    Data Set Ready (DSR) controlled by the computer
  412.           
  413.           e.g. type AT&K3 <RETURN>.  When done type AT&W <RETURN> to save
  414.           the settings to Non Volatile Ram (NVRAM) so that they are
  415.           remembered when the modem is reset.
  416.  
  417.          Some US Robotics occasionally mistake a System X (and Y?)
  418.          ringing tone for a busy tone and hang up just as the Demon end
  419.          answers.  Sticking a pause on the end of the dialling sequence
  420.          stops the modem's response long enough for the Demon end to
  421.          start its negotiating sequence.  This means that the confusing
  422.          System X tone is ignored.  If the Demon end is busy you just to
  423.          wait a bit longer for the BUSY string, but not as long as the
  424.          setting in S7.  Add a pause by adding a comma to the end of the
  425.          string.
  426.          
  427.  
  428.      12.2 Supra modems
  429.      =================
  430.           
  431.           Supra 14.4k fax modems need the ROM revision 1.70B (or later of
  432.           course).
  433.           
  434.           Information providing features
  435.               Enable all CONNECT, PROTOCOL & COMPRESSION mesgs:   s95=41
  436.               loudspeaker control (low volume, on until carrier): l1m1
  437.           
  438.           Modem/PC signals
  439.               modems disconnects when DTR drops:                  &d2
  440.               DCD follows line carrier:                           &c1
  441.               Enable hardware flow control:                       &k3
  442.           
  443.           Speed connection, reject bad lines
  444.               new models, only make LAPM Reliable connections:    \n4
  445.               old models, make AutoReliable connections:          \n3
  446.               Disable negotiation, make V42 (LAPM) connection:    s48=0
  447.               connect at highest shared data rate:                n1
  448.           
  449.           Compression
  450.               new models, V.42bis (BTLZ) Enabled, (but not MNP):  %C2
  451.               old models, enable data compression (BTLZ or MNP):  s41=1
  452.           
  453.           An initialisation string for this would be:
  454.           
  455.           ats95=41 l1m1&d2&c1&k3 \\n4 s48=0 n1 %C2
  456.                            ^note the double '\' is needed if typing this
  457.                            into some dialer programs
  458.           
  459.           To put this into the modem's memory (NVRAM) type at&w
  460.           
  461.           
  462.           
  463.           
  464.      12.3 Yoriko modems
  465.      ==================
  466.  
  467.           Yorikos work OK with a simple AT&F&C1&D2 set-up.
  468.  
  469.      12.4 Zoltrix
  470.      ============
  471.  
  472.          These are one of our user's settings for a Zoltrix v32bis
  473.          internal fax/modem.  He writes:
  474.          
  475.          With X4, W1 and V1, I've managed to configure it very nicely to
  476.          redial
  477.          if the line's are busy after only 5 seconds, report CONNECT,
  478.          PROTOCOL
  479.          CARRIER, and BUSY
  480.          
  481.          The only bit I'm vaguely unsure about is, whether disabling
  482.          compression (%c0
  483.          on mine), disables v42bis also, as I really only want to knock
  484.          out MNP 5.
  485.          &Q9 I think attempts v42bis, falls back to LAP-M+v42, then to
  486.          normal.
  487.          
  488.          An annoying feature is that at&v only digs out probably a
  489.          quarter of
  490.          the settings - the '\' and '%' commands don't feature; some of
  491.          them
  492.          appear extremely useful: %Q for instance purportedly reports
  493.          line signal
  494.          quality, and %L received signal level, which I reckon might be
  495.          relevant to
  496.          one recent spate of postings, and you can tune up v42bis with
  497.          others.
  498.          
  499.          S86 stores a connection failure cause code.
  500.          
  501.          OK
  502.          at&v
  503.          ACTIVE PROFILE:
  504.          B0 E1 L0 M0 N1 Q0 T V1 W1 X4 Y0 &C1 &D2 &G0 &J0 &K3 &Q9 &R0 &S1
  505.          &T4 &X0 &Y0
  506.          S00:000 S01:000 S02:043 S03:013 S04:010 S05:008 S06:002 S07:060
  507.          S08:002 S09:006
  508.          S10:014 S11:095 S12:050 S18:000 S25:005 S26:001 S36:007 S37:000
  509.          S38:020 S44:003
  510.          S46:138 S48:007 S49:008 S50:255
  511.          
  512.      12.5 Zoom modems
  513.      ================
  514.           
  515.           To force a Zoom modem to talk at only one speed:
  516.           AT&Q6S37=11M0X3&K4
  517.  
  518.  
  519. 13. Testing
  520. ===========
  521.           
  522.           To test out your setup you could try using ping.  ping
  523.           gate.demon.co.uk whilst logged on directly to gate should
  524.           return a speed of about 270ms on a fast link down to 1000ms on
  525.           a slow link.
  526.           
  527.           Try using ftp to ftp.demon.co.uk and downloading files from
  528.           /pub/test.  There are files of varying contents that have also
  529.           been compressed in various ways.  "empty" files are there so
  530.           that you can test the maximum throughput on blank data.  "full"
  531.           files contain a thorough mix of characters and so little
  532.           compression by your modem will be possible. "regular" files are
  533.           a mixture - just like this document or a Usenet news message.
  534.           Each of these three have been compressed using popular methods
  535.           and so you can try working on the compressed files as well if
  536.           you like.  Try uploading these files to
  537.           ftp.demon.co.uk:/incoming to test the link in that direction as
  538.           well.
  539.           
  540.           Using a V.32bis modem, the maximum throughput you are likely to
  541.           get on a binary file is 1,600 cps.  On an ASCII file the
  542.           maximum is about 2,800 cps.
  543.           
  544.           
  545. 14. Finally
  546. ===========
  547.           
  548.           Please try to sort out your setup by following the above
  549.           advice.  If you are still stuck then telephone the support line
  550.           on 081-343 3881 during support hours to see if further help can
  551.           be offered.  Full support line details are available in
  552.           /pub/doc/Welcome.txt.
  553.